#include<bits/stdc++.h>
using namespace std;

int n,x;
int tong[100009];

int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(0);
    cin>>n;
    for(int i=0;i<n;i++)
    {
        cin>>x;
        tong[x]++;
    }
    int yu=0,k;
    for(int i=1;i<=100000;i++)
    {
        k=min(yu,tong[i]);
        yu-=k;
        yu+=tong[i];
    }

    cout<<yu;

    return 0;
}
